package com.yyc.system.service.impl;

import com.yyc.system.dao.TGradeMapper;
import com.yyc.system.model.TGrade;
import com.yyc.system.service.ITGradeService;
import com.yyc.core.AbstractService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by yyc on 2019/01/04.
 */
@Service
@Transactional( isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TGradeServiceImpl extends AbstractService<TGrade> implements ITGradeService {
    @Autowired
    private TGradeMapper tGradeMapper;

	@Override
	public List<TGrade> findClassGrade(Integer classId) {
		return tGradeMapper.getClassGrade(classId);
	}

}
